//
//  CommonUtil.h
//  xyz
//
//  Created by jorsun on 14-3-14.
//
//

#ifndef __xyz__CommonUtil__
#define __xyz__CommonUtil__

#include <iostream>
#include "cocos2d.h"
#include "Player.h"
class CommonUtil:public CCObject{
public:
    ~CommonUtil();
    static CommonUtil* getInstance();
	void setPlayer(Player *player);
	Player* getPlayer();
    void loadResouce();
    Player* createPlayer(std::string name);
	void dataLoaded(float percent);
private:
    Player *player;
	CommonUtil();
    
};
#endif /* defined(__xyz__CommonUtil__) */
